<template>
  <div @click="touchMe">
    <h1>{{name}}</h1>
    <h2>年龄:{{age}}</h2>
    <button @click.stop="test"> 点我调用混入的method</button>
    <hr>
  </div>
</template>

<script>
import Vue from 'vue';
import {mixin} from '../mixin.js';
export default Vue.extend({
    name: 'MyStudent',
    
    data() {
        console.log('@@@',this.a)
        return {
             name: '张三',
             age: this.a
        }
    },
    
    methods:{

    },
    mixins:[mixin]

});
</script>

<style>
    div{
        background: rebeccapurple;
    }
</style>